Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

files of /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Linked list/

Delete Node in a Linked List.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Linked list/Delete Node in a Linked List.cpp
24 Views
0 Comments
class Solution {
public:
void deleteNode(ListNode* node) {
if(node->next == NULL) delete node;
swap(node
Middle of the Linked List.cpp /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Linked list/Middle of the Linked List.cpp
16 Views
0 Comments
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0)